import request from '@/utils/request'

export function getGroups(query) {
  return request({
    url: '/customer/group/getList',
    method: 'post',
    data: query
  })
}

export function getGroup(id) {
  return request({
    url: '/customer/group/getDetail',
    method: 'post',
    data: id
  })
}

export function saveGroup(id) {
  return request({
    url: '/customer/group/save',
    method: 'post',
    data: id
  })
}

export function removeGroupByID(id) {
  return request({
    url: '/customer/group/remove',
    method: 'post',
    data: id
  })
}

export function changeStatusByGroupID(formdata) {
  return request({
    url: '/customer/group/change-status',
    method: 'post',
    data: formdata
  })
}

